﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using BesAsm.Framework.Reporting;

namespace BesAsm.Emgaats.Core
{
  public class UIAddMasterLayersButton : ESRI.ArcGIS.Desktop.AddIns.Button
  {
    public UIAddMasterLayersButton()
    {
    }

    protected override void OnClick()
    {
      try
      {
        EmgaatsCoreExtension ext = EmgaatsCoreExtension.GetExtension();
        ext.LoadMasterLayers();
      }
      catch (Exception ex)
      {
        Messenger.ReportMessage("Error loading master layers: " + ex.Message, ReportableMessageType.Error);
      }

    }

    protected override void OnUpdate()
    {
    }
  }
}
